package zoogames;

import java.util.ArrayList;

public class Main {
    public static void main(String[] args){
        ArrayList<AbstractAnimal> arrayAbstractAnimal = new ArrayList<>();
        arrayAbstractAnimal.add(new Cat("喵喵"));
        arrayAbstractAnimal.add(new Dog("旺财"));
        arrayAbstractAnimal.add(new CaffeCat("加菲猫"));
        for(AbstractAnimal animal: arrayAbstractAnimal){
            animal.shout();
        }
    }
}